﻿namespace Dhgms.Whipstaff.Core.Exceptions
{
    using System;

    /// <summary>
    /// The exception which is thrown when trying to initialize a second application instance, and the SingleInstanceManager
    /// is set to TerminationOption.Throw.
    /// </summary>
    public sealed class ApplicationInstanceAlreadyExistsException : Exception
    {
        /// <summary>
        /// Creates an instance of ApplicationInstanceAlreadyExistsException
        /// </summary>
        public ApplicationInstanceAlreadyExistsException()
            : base("Application instance already exists")
        { }
    }
}
